package com.itcast.service.impl;

import com.itcast.pojo.Goods;
import com.itcast.mapper.GoodsMapper;
import com.itcast.service.Goodsservice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements Goodsservice {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Map<String,Object> countgoods(int id) {
        return goodsMapper.countgoods(id);
    }
}
